package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.WechatRedpacketWithdrawState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "WechatRedpacketWithdraw对象", description = "")
public class WechatRedpacketWithdraw implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userId;

    private BigDecimal amount;

    private String transactionNumber;

    @ApiModelProperty(value = "0:init,1:operated,2:done,3:cancelled,4:failed,5:rejected,6:front_end_done")
    private WechatRedpacketWithdrawState state;

    private LocalDateTime createdAt;


}
